abstract class $PQ{T < $IS_LT{T}} < $DISPENSER{T} |
---|
**** | Standard priority queue abstraction. Returns the element with the highest priority |
$DISPENSER{_} | $STR | $CONTAINER{_} | $ELT{_} | $ELT |
A_PQ{_} |
clear; |
---|
**** | Remove all elements from the queue |
insert(e: T); |
---|
**** | Insert the element "e" into the priority queue |
is_empty: BOOL; |
---|
**** | Return true if the queue is empty |
pop: T; |
---|
**** | Remove and return the top most element (alias for "remove") |
top: T; |
---|
**** | Return the top element of the queue. |